//
//  TYZNoDataOrErrorView.h
//  DriveSchoolCoach
//
//  Created by TangBin on 2019/7/4.
//  Copyright © 2019 TangBin. All rights reserved.
//

#import "TYZBaseView.h"

NS_ASSUME_NONNULL_BEGIN



@interface TYZNoDataOrErrorView : TYZBaseView
/**
 初始化
 
 @param frame 视图位置大小
 @param image 图片
 @param tip 提示信息
 @param block 点击后执行block，表示可以刷新数据
 @return return value description
 */
//- (instancetype)initWithFrame:(CGRect)frame withImage:(UIImage *)image withTip:(NSString *)tip tapGestureBlock:(void(^)(id data))block;

- (void)updateWithImage:(nullable UIImage *)image withTip:(nullable NSString *)tip btnResetHidden:(BOOL)hidden descHidden:(BOOL)descHidden;

- (void)updateWithImage:(nullable UIImage *)image withTip:(nullable NSString *)tip tipFont:(UIFont *)tipFont tipColor:(UIColor *)tipColor btnTop:(CGFloat)btnTop btnResetHidden:(BOOL)hidden descHidden:(BOOL)descHidden;

- (void)updateWithBtnReset:(NSString *)title backgroundColor:(UIColor *)backgroundColor fontColor:(UIColor *)fontColor;

- (void)updateWithDesc:(NSString *)desc font:(UIFont *)font textColor:(UIColor *)textColor;

- (void)updateImageSize:(CGSize)size;

@end

NS_ASSUME_NONNULL_END
